﻿@{
    ViewBag.Title = "Update Information";
}
<h2>
    Thông tin cá nhân</h2>
@using SAD_SiS.Models
@model Customer
           
<script type="text/javascript" src="../../Scripts/zebra_datepicker.js"></script>
<link rel="stylesheet" href="../../Content/css/defaultDatePicker.css" />
<style type="text/css">
    table.updateInfor
    {
        width: 30%; 
        margin: 0 auto;
        
    }
    
    table.updateInfor td.title
    {
        height: 40px;
        padding: 0 20px;
        text-align: right;
    }
</style>
<form action="@Url.Action("UpdateInfo", "Customer")" method="post">
<table class="updateInfor">
    <tr>
        <td class="title">
            Username:
        </td>
        <td>
            @Model.Username
        </td>
    </tr>
    <tr>
        <td class="title">
            Email:
        </td>
        <td>
            @Model.Account.Email
        </td>
    </tr>
    <tr>
        <td class="title">
            Full name:
        </td>
        <td>
            <input name="fullname" type="text" value="@Model.FullName" />
        </td>
    </tr>
    <tr>
        <td class="title">
            Phone:
        </td>
        <td>
            <input name="phone" type="text" value="@Model.Phone" />
        </td>
    </tr>
    <tr>
        <td class="title">
            Street:
        </td>
        <td>
            <input name="street" type="text" value="@Model.Street" />
        </td>
    </tr>
    <tr>
        <td class="title">
            District:
        </td>
        <td>
            <input name="district" type="text" value="@Model.District" />
        </td>
    </tr>
    <tr>
        <td class="title">
            Birthday
        </td>
        <td>
            <script type="text/javascript">
                $(document).ready(function () {
                    $('#birthdayid').Zebra_DatePicker();
                });
            </script>
            <form action="javascript:void(0)" method="post">
            <div class="input-append date">
                <input class="span2" id="birthdayid" type="text" name="birthday" />
            </div>
            </form>
        </td>
    </tr>
    <tr>
        <td colspan="2" style="text-align: right">
            <input class="btn btn-primary" id="txtSubmit" type="submit" value="Submit" style="margin-right: 15px;" />
        </td>
    </tr>
</table>
</form>
